import Arbori.*;
import Operator.*;
import Functii.Elementare.*;
import Visitor.*;

public class Main {
	public static void main(String[] args) {
		Nod p = new Plus();
		Nod r = new Radical();
		Nod c = new Constanta(5);
		Nod n1 = new Necunoscuta();
		p.setfStang(c);
		p.setfDrept(r);
		r.setfStang(n1);
		ArboreFunctional a = new ArboreFunctional(p);
		Visitor v1 = new ToStringVisitor();
		a.acceptVisitor(v1);
	}
}
